package org.example.blogserver.blog.service;

import com.github.pagehelper.PageInfo;
import org.example.blogpojo.Dto.ArticleDto;
import org.example.blogpojo.blog.domain.Article;
import org.example.blogpojo.blog.query.ArticleQuery;
import org.example.blogpojo.blog.vo.ArticleTypeVo;
import org.example.blogpojo.blog.vo.GdVo;

import java.util.List;

public interface ArticleService {
    List<Article> getAllArticle();

    Article getArticleById(Long id);

    PageInfo<Article> queryPage(ArticleQuery articleQuery);

    void insertArticle(Article article);

    void updateArticle(Article article);

    void deleteArticle(Long id);

    void deleteArticleByIds(Long[] ids);

    Article getByFileName(String fileName);

    List<GdVo> getGd();

    List<Article> getRa(Long id);

    List<ArticleDto> getBlogGdList(String time);
}
